Optimal. Leaf size=123 \[ \frac{(A b-a B) (b d-a e)^3 \log (a+b x)}{b^5}+\frac{e x (A b-a B) (b d-a e)^2}{b^4}+\frac{(d+e x)^2 (A b-a B) (b d-a e)}{2 b^3}+\frac{(d+e x)^3 (A b-a B)}{3 b^2}+\frac{B (d+e x)^4}{4 b e} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.169826, antiderivative size = 123, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.05 \[ \frac{(A b-a B) (b d-a e)^3 \log (a+b x)}{b^5}+\frac{e x (A b-a B) (b d-a e)^2}{b^4}+\frac{(d+e x)^2 (A b-a B) (b d-a e)}{2 b^3}+\frac{(d+e x)^3 (A b-a B)}{3 b^2}+\frac{B (d+e x)^4}{4 b e} \]
Antiderivative was successfully verified.
[In] Int[((A + B*x)*(d + e*x)^3)/(a + b*x),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ \frac{B \left (d + e x\right )^{4}}{4 b e} + \frac{\left (d + e x\right )^{3} \left (A b - B a\right )}{3 b^{2}} - \frac{\left (d + e x\right )^{2} \left (A b - B a\right ) \left (a e - b d\right )}{2 b^{3}} + \frac{\left (A b - B a\right ) \left (a e - b d\right )^{2} \int e\, dx}{b^{4}} - \frac{\left (A b - B a\right ) \left (a e - b d\right )^{3} \log{\left (a + b x \right )}}{b^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)*(e*x+d)**3/(b*x+a),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.162693, size = 169, normalized size = 1.37 \[ \frac{b x \left (-12 a^3 B e^3+6 a^2 b e^2 (2 A e+6 B d+B e x)-2 a b^2 e \left (3 A e (6 d+e x)+B \left (18 d^2+9 d e x+2 e^2 x^2\right )\right )+b^3 \left (2 A e \left (18 d^2+9 d e x+2 e^2 x^2\right )+3 B \left (4 d^3+6 d^2 e x+4 d e^2 x^2+e^3 x^3\right )\right )\right )+12 (A b-a B) (b d-a e)^3 \log (a+b x)}{12 b^5} \]
Antiderivative was successfully verified.
[In] Integrate[((A + B*x)*(d + e*x)^3)/(a + b*x),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.007, size = 341, normalized size = 2.8 \[{\frac{B{x}^{4}{e}^{3}}{4\,b}}+{\frac{A{x}^{3}{e}^{3}}{3\,b}}-{\frac{B{x}^{3}a{e}^{3}}{3\,{b}^{2}}}+{\frac{B{x}^{3}d{e}^{2}}{b}}-{\frac{aA{x}^{2}{e}^{3}}{2\,{b}^{2}}}+{\frac{3\,A{x}^{2}d{e}^{2}}{2\,b}}+{\frac{B{x}^{2}{a}^{2}{e}^{3}}{2\,{b}^{3}}}-{\frac{3\,B{x}^{2}ad{e}^{2}}{2\,{b}^{2}}}+{\frac{3\,B{x}^{2}{d}^{2}e}{2\,b}}+{\frac{{a}^{2}A{e}^{3}x}{{b}^{3}}}-3\,{\frac{aAd{e}^{2}x}{{b}^{2}}}+3\,{\frac{A{d}^{2}ex}{b}}-{\frac{B{a}^{3}{e}^{3}x}{{b}^{4}}}+3\,{\frac{B{a}^{2}d{e}^{2}x}{{b}^{3}}}-3\,{\frac{Ba{d}^{2}ex}{{b}^{2}}}+{\frac{B{d}^{3}x}{b}}-{\frac{\ln \left ( bx+a \right ) A{a}^{3}{e}^{3}}{{b}^{4}}}+3\,{\frac{\ln \left ( bx+a \right ) A{a}^{2}d{e}^{2}}{{b}^{3}}}-3\,{\frac{\ln \left ( bx+a \right ) Aa{d}^{2}e}{{b}^{2}}}+{\frac{\ln \left ( bx+a \right ) A{d}^{3}}{b}}+{\frac{\ln \left ( bx+a \right ) B{a}^{4}{e}^{3}}{{b}^{5}}}-3\,{\frac{\ln \left ( bx+a \right ) B{a}^{3}d{e}^{2}}{{b}^{4}}}+3\,{\frac{\ln \left ( bx+a \right ) B{a}^{2}{d}^{2}e}{{b}^{3}}}-{\frac{\ln \left ( bx+a \right ) Ba{d}^{3}}{{b}^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)*(e*x+d)^3/(b*x+a),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.35029, size = 359, normalized size = 2.92 \[ \frac{3 \, B b^{3} e^{3} x^{4} + 4 \,{\left (3 \, B b^{3} d e^{2} -{\left (B a b^{2} - A b^{3}\right )} e^{3}\right )} x^{3} + 6 \,{\left (3 \, B b^{3} d^{2} e - 3 \,{\left (B a b^{2} - A b^{3}\right )} d e^{2} +{\left (B a^{2} b - A a b^{2}\right )} e^{3}\right )} x^{2} + 12 \,{\left (B b^{3} d^{3} - 3 \,{\left (B a b^{2} - A b^{3}\right )} d^{2} e + 3 \,{\left (B a^{2} b - A a b^{2}\right )} d e^{2} -{\left (B a^{3} - A a^{2} b\right )} e^{3}\right )} x}{12 \, b^{4}} - \frac{{\left ({\left (B a b^{3} - A b^{4}\right )} d^{3} - 3 \,{\left (B a^{2} b^{2} - A a b^{3}\right )} d^{2} e + 3 \,{\left (B a^{3} b - A a^{2} b^{2}\right )} d e^{2} -{\left (B a^{4} - A a^{3} b\right )} e^{3}\right )} \log \left (b x + a\right )}{b^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(e*x + d)^3/(b*x + a),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.208702, size = 363, normalized size = 2.95 \[ \frac{3 \, B b^{4} e^{3} x^{4} + 4 \,{\left (3 \, B b^{4} d e^{2} -{\left (B a b^{3} - A b^{4}\right )} e^{3}\right )} x^{3} + 6 \,{\left (3 \, B b^{4} d^{2} e - 3 \,{\left (B a b^{3} - A b^{4}\right )} d e^{2} +{\left (B a^{2} b^{2} - A a b^{3}\right )} e^{3}\right )} x^{2} + 12 \,{\left (B b^{4} d^{3} - 3 \,{\left (B a b^{3} - A b^{4}\right )} d^{2} e + 3 \,{\left (B a^{2} b^{2} - A a b^{3}\right )} d e^{2} -{\left (B a^{3} b - A a^{2} b^{2}\right )} e^{3}\right )} x - 12 \,{\left ({\left (B a b^{3} - A b^{4}\right )} d^{3} - 3 \,{\left (B a^{2} b^{2} - A a b^{3}\right )} d^{2} e + 3 \,{\left (B a^{3} b - A a^{2} b^{2}\right )} d e^{2} -{\left (B a^{4} - A a^{3} b\right )} e^{3}\right )} \log \left (b x + a\right )}{12 \, b^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(e*x + d)^3/(b*x + a),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 3.48891, size = 214, normalized size = 1.74 \[ \frac{B e^{3} x^{4}}{4 b} - \frac{x^{3} \left (- A b e^{3} + B a e^{3} - 3 B b d e^{2}\right )}{3 b^{2}} + \frac{x^{2} \left (- A a b e^{3} + 3 A b^{2} d e^{2} + B a^{2} e^{3} - 3 B a b d e^{2} + 3 B b^{2} d^{2} e\right )}{2 b^{3}} - \frac{x \left (- A a^{2} b e^{3} + 3 A a b^{2} d e^{2} - 3 A b^{3} d^{2} e + B a^{3} e^{3} - 3 B a^{2} b d e^{2} + 3 B a b^{2} d^{2} e - B b^{3} d^{3}\right )}{b^{4}} + \frac{\left (- A b + B a\right ) \left (a e - b d\right )^{3} \log{\left (a + b x \right )}}{b^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)*(e*x+d)**3/(b*x+a),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.218309, size = 387, normalized size = 3.15 \[ \frac{3 \, B b^{3} x^{4} e^{3} + 12 \, B b^{3} d x^{3} e^{2} + 18 \, B b^{3} d^{2} x^{2} e + 12 \, B b^{3} d^{3} x - 4 \, B a b^{2} x^{3} e^{3} + 4 \, A b^{3} x^{3} e^{3} - 18 \, B a b^{2} d x^{2} e^{2} + 18 \, A b^{3} d x^{2} e^{2} - 36 \, B a b^{2} d^{2} x e + 36 \, A b^{3} d^{2} x e + 6 \, B a^{2} b x^{2} e^{3} - 6 \, A a b^{2} x^{2} e^{3} + 36 \, B a^{2} b d x e^{2} - 36 \, A a b^{2} d x e^{2} - 12 \, B a^{3} x e^{3} + 12 \, A a^{2} b x e^{3}}{12 \, b^{4}} - \frac{{\left (B a b^{3} d^{3} - A b^{4} d^{3} - 3 \, B a^{2} b^{2} d^{2} e + 3 \, A a b^{3} d^{2} e + 3 \, B a^{3} b d e^{2} - 3 \, A a^{2} b^{2} d e^{2} - B a^{4} e^{3} + A a^{3} b e^{3}\right )}{\rm ln}\left ({\left | b x + a \right |}\right )}{b^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(e*x + d)^3/(b*x + a),x, algorithm="giac")
[Out]